package org.knot.autojmx.example;

import org.knot.autojmx.annotations.JMXMethod;
import org.knot.autojmx.annotations.JMXProperty;
import org.knot.autojmx.enums.Rights;

public class TestJMXBeanAPI4 {
	
	private final static TestJMXBeanAPI4 _managerMbean = new TestJMXBeanAPI4();

    private TestJMXBeanAPI4(){
    }
    
    public static TestJMXBeanAPI4 Instance(){
        return _managerMbean;
    }
	
	@JMXProperty(name="m_integer", rights=Rights.READ_WRITE,notification=true,description="property description")
	int m_integer = 1;

	public int getM_integer() {
		return m_integer;
	}

	public void setM_integer(int mInteger) {
		m_integer = mInteger;
	}
	@JMXMethod(description="invoke m_integer add a")
	public void addInt(int a)
	{
		m_integer = m_integer + a;
	}
	
	
}
